package com.ssyt.ec.sys.entity;

import java.util.Date;

public class MenuEntity {

	private int id;
	private String text;
	private int state;
	private String iconCls;
	private String url;
	private int pid;
	private Date operate_time;
	private String menutext;

	public String getMenutext() {
		return menutext;
	}

	public void setMenutext(String menutext) {
		this.menutext = menutext;
	}

	public Date getOperate_time() {
		return operate_time;
	}

	public void setOperate_time(Date operate_time) {
		this.operate_time = operate_time;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getState() {
		if (state == 1) {
			return "open";
		} else if (state == 2) {
			return "closed";
		} else {
			return "失效";
		}

	}

	public void setState(int state) {
		this.state = state;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

}
